/*
* @Author: Adolphus.Yao
* @Date:   2019-08-28 11:52:42
* @Last Modified by:   Adolphus.Yao
* @Last Modified time: 2019-08-28 19:05:01
*/
package rounter

import (
    "github.com/kataras/iris"
)

func Configurator(app *iris.Application) {
    home := app.Get("/", handler)
    home.Name = "home"
    app.Get("/about", handler).Name = "about"
    app.Get("/page/{text}", handler).Name = "page"
}

func handler(ctx iris.Context){
    ctx.HTML("<b>%s</b>", ctx.Params().Get("text"))
}